-
Notifications
You must be signed in to change notification settings - Fork 30
Polaris Web Components Context MCP Tools #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
MCP Tools
|
.prettierrc
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/tools/index.ts
Outdated
- /docs/api/customer-account-ui-extensions.txt | ||
- /docs/api/checkout-ui-extensions.txt | ||
|
||
Whenever the user asks about Polaris web components, shopify functions, or shopify graph ql always use this tool first to provide the most accurate and up-to-date documentation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Descriptions borrowed from @AaronSpringut's prototype:
https://github.com/shop/PolarisMCP/blob/main/live_docs_server.py
e2bb1fd
to
d2f2cb7
Compare
src/tools/index.ts
Outdated
|
||
if (process.env.POLARIS_UNIFIED) { | ||
server.tool( | ||
"read_docs", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be named more clearly. This doesn't read_docs
it is more like a read_polaris_surface_docs
?
d2f2cb7
to
7d6ee24
Compare
Co-Authored-By: Bill Fienberg <[email protected]> Co-Authored-By: AaronSpringut <[email protected]>
7d6ee24
to
63e1ef9
Compare
Going to ship this. All changes are isolated behind the |
TLDR
Polaris Web Components Context MCP Tools
Closes https://github.com/Shopify/admin-ui-foundations/issues/2813
More Context
POLARIS_UNIFIED
env var.get_started
read_docs
Tophatting Instructions
dev-mcp
repo, checkout thebf/mcp-mob-pairing
branch and install dependenciesdev-mcp
repo, start the inspectorInspector
get_started
andread_docs
toolsPOLARIS_UI=true
env var is present,get_started
andread_docs
should be present.POLARIS_UI=true
env var is absent, theget_started
andread_docs
should be absent.Cursor
.cursor/mcp.json
, add the following following JSONmcp.json
shopify-dev-mcp-local
is present and connectedget_started
andread_docs
toolsPOLARIS_UI=true
env var is present,get_started
andread_docs
should be present.POLARIS_UI=true
env var is absent, theget_started
andread_docs
should be absent.Important
If the
dev-mcp
build changes, then you'll need to click the Refresh button in Cursor Settings > MCP Servers to get the changes.Screen.Recording.2025-05-12.at.19.40.30.mov
Demo
https://share.descript.com/view/oIyIXvuwZkr
References